#include <AtlasBase.h>
#include <AtlasServer.h>

#include "ExLobbyCluster.h"
#include "ExLobbyDDL.h"

namespace Atlas
{

	CExLobbyClusterServer::CExLobbyClusterServer(CServerApp* pServerApp) : CClusterServer(pServerApp)
	{
	}

	CExLobbyClusterServer::~CExLobbyClusterServer()
	{
	}

	CClusterClient* CExLobbyClusterServer::NewClusterClient(_U64 nCNDX)
	{
		return ATLAS_NEW CExLobbyClusterClient(this, nCNDX);
	}

	CExLobbyClusterClient::CExLobbyClusterClient(CClusterServer* pServer, _U64 nCNDX) : CClusterClient(pServer, nCNDX)
	{
	}

	CExLobbyClusterClient::~CExLobbyClusterClient()
	{
	}

	void CExLobbyClusterClient::OnUserLogin()
	{
		//NodeSwitch(NODEID_AVATAR, GetLocalRPCServer(), 0, 0, NULL);
		NodeSwitch(NODEID_AVATAR, GetRPCServer("127.0.0.1:1983"), 0, 0, NULL);
	}

}
